import instance from "../../utils/request";



class Ax{
    constructor(contentType="application/json") {
        this.contentType = contentType
    }

    getOrderInfo(token, pamas={}){
        return instance({
            method:"get",
            url:"/order/orders",
            header: {"Authorization" : "Bearer " + token},
            query:pamas
        })
    }

    deleteOrderInfo(token, order_id){
        return instance({
            method: "delete",
            url: "/order/orders/" + order_id,
            headers: {"Authorization": "Bearer " + token}
        })
    }
}


export default Ax